package com.indexingsystem.boss.Vo;

import java.io.Serializable;

public class ResourceCategorsVo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 966439002715986700L;

	private String resCategoryId;

	private String resName;

	private String parentId;

	private String description;

	private String categoryOrder;
	
	private Integer isPublications;

	public String getResCategoryId() {
		return resCategoryId;
	}

	public void setResCategoryId(String resCategoryId) {
		this.resCategoryId = resCategoryId;
	}

	public String getResName() {
		return resName;
	}

	public void setResName(String resName) {
		this.resName = resName;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getCategoryOrder() {
		return categoryOrder;
	}

	public void setCategoryOrder(String categoryOrder) {
		this.categoryOrder = categoryOrder;
	}

	public Integer getIsPublications() {
		return isPublications;
	}

	public void setIsPublications(Integer isPublications) {
		this.isPublications = isPublications;
	}	
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((categoryOrder == null) ? 0 : categoryOrder.hashCode());
		result = prime * result
				+ ((description == null) ? 0 : description.hashCode());
		result = prime * result
				+ ((isPublications == null) ? 0 : isPublications.hashCode());
		result = prime * result
				+ ((parentId == null) ? 0 : parentId.hashCode());
		result = prime * result
				+ ((resCategoryId == null) ? 0 : resCategoryId.hashCode());
		result = prime * result + ((resName == null) ? 0 : resName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ResourceCategorsVo other = (ResourceCategorsVo) obj;
		if (categoryOrder == null) {
			if (other.categoryOrder != null)
				return false;
		} else if (!categoryOrder.equals(other.categoryOrder))
			return false;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (isPublications == null) {
			if (other.isPublications != null)
				return false;
		} else if (!isPublications.equals(other.isPublications))
			return false;
		if (parentId == null) {
			if (other.parentId != null)
				return false;
		} else if (!parentId.equals(other.parentId))
			return false;
		if (resCategoryId == null) {
			if (other.resCategoryId != null)
				return false;
		} else if (!resCategoryId.equals(other.resCategoryId))
			return false;
		if (resName == null) {
			if (other.resName != null)
				return false;
		} else if (!resName.equals(other.resName))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "ResourceCategorsVo [resCategoryId=" + resCategoryId + ", resName=" + resName + ", parentId=" + parentId
				+ ", description=" + description + ", categoryOrder=" + categoryOrder + ", isPublications="
				+ isPublications + "]";
	}

	public ResourceCategorsVo(String resCategoryId, String resName, String parentId, String description,
			String categoryOrder, Integer isPublications) {
		super();
		this.resCategoryId = resCategoryId;
		this.resName = resName;
		this.parentId = parentId;
		this.description = description;
		this.categoryOrder = categoryOrder;
		this.isPublications = isPublications;
	}

	public ResourceCategorsVo() {
		super();
	}
}